package com.hualan.controller;

import com.hualan.service.impl.UserRoleService;
import com.hualan.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/userRole")
public class UserRoleController {

    @Autowired
    private UserRoleService userRoleService;

    @GetMapping("/getUserRole")
    public R getUserRole(){
        return R.success(userRoleService.findAllUserRole());
    }
}
